From 49dd7b82fe149fe98ad6bcf7eb59013adfc4e6f5 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 9 Mar 2006 07:12:03 +0000 Subject: [PATCH] Tweak icon for suprise cache type on maggeo write. --- gpsbabel/maggeo.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gpsbabel/maggeo.c b/gpsbabel/maggeo.c index bb645f622..6c5f9c288 100644 --- a/gpsbabel/maggeo.c +++ b/gpsbabel/maggeo.c @@ -160,7 +160,15 @@ maggeo_waypt_pr(const waypoint *waypointp) lon = (lon_deg * 100.0 + lon); lat = (lat_deg * 100.0 + lat); - ctype = gs_get_cachetype(waypointp->gc_data.type); + /* + * For some reason, Magellan used exactly the GPX spellings of + * everything except this one... + */ + if (waypointp->gc_data.type == gt_suprise) { + ctype = "Mystery Cache"; + } else { + ctype = gs_get_cachetype(waypointp->gc_data.type); + } placeddate = maggeo_fmtdate(waypointp->creation_time); lfounddate = maggeo_fmtdate(waypointp->gc_data.last_found); cname = mkshort(desc_handle, waypointp->notes ? waypointp->notes : waypointp->shortname); -- 2.30.2